package cn.Service;

import cn.Dao.EmployeeDao;
import cn.Entity.Employee;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

//@Service
public interface IEmployeeService {
    public Employee getOne(Integer id);

    public void setEmployeeDao(EmployeeDao ed);

    @Transactional
    public void batchDeleteEmployee(int begin , int end);

    public List<Employee> findAll();

    public void saveEmployee(Employee employee);

}
